package com.cty.C_SortAlgorithms.A_BubbleSort;

import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/17 9:27
 * @Description:  测试冒泡排序
 * @version: 1.0
 */
public class BubbleSortApp {
    public static void main(String[] args) {
        BubbleSort array = new BubbleSort(100);

        long key;
        for(int i=0; i<10; i++){
            key = (long) (Math.random()*99);
            array.insert(new DataItem(key));
        }
        array.displayArray();

        array.bubbleSort();
        array.displayArray();

    }  // end main()
}  // end BubbleSortApp{}

/**
 * 77 99 44 55 22 88 11 0 66 33
 * 0 11 22 33 44 55 66 77 88 99
 */
